Skip to content

Support configurable ShouldPing func when acquiring conns#2362

Merged
jackc merged 1 commit into
jackc:masterfrom
christiankiely:shouldping
Aug 9, 2025
Merged

Support configurable ShouldPing func when acquiring conns#2362
jackc merged 1 commit into
jackc:masterfrom
christiankiely:shouldping

Conversation

@christiankiely

@christiankiely christiankiely commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

Implemented the suggested approach in #1738.

Allowing ShouldPing to be configurable will allow us to change the threshold for Pings on acquiring a conn, or disable it entirely.

@jackc jackc merged commit 25cba15 into jackc:master Aug 9, 2025
14 checks passed
@jackc

jackc commented Aug 9, 2025

Copy link
Copy Markdown
Owner

Thanks!

@ilyam8

ilyam8 commented Aug 25, 2025

Copy link
Copy Markdown
Contributor

@jackc, hey, 👋 Could you please create a release that includes this change? This is a requirement for us to migrate from v4 to v5, as it resolves the PgBouncer compatibility issue that's currently blocking our upgrade.

@jackc

jackc commented Sep 8, 2025

Copy link
Copy Markdown
Owner

@ilyam8 v5.7.6 was just released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants